package com.wgts.wgts.mvp.view.activity.main;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.widget.Button;

import com.wgts.wgts.R;
import com.wgts.wgts.adapter.MainViewPageAdapter;
import com.wgts.wgts.adapter.TestAdapter;
import com.wgts.wgts.base.BaseActivity;
import com.wgts.wgts.control.recycleview.LoadRefreshRecyclerView;
import com.wgts.wgts.control.recycleview.WrapRecyclerAdapter;
import com.wgts.wgts.mvp.view.activity.shopCar.ShoppingCarFragment;
import com.wgts.wgts.test.viewPage.MainViewPage;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends BaseActivity{
    @BindView(R.id.main_view_page)
    MainViewPage mainViewPage;
    @BindView(R.id.wrap_recycle_view)
    LoadRefreshRecyclerView wrapRecycleView;
    @BindView(R.id.bn_stop)
    Button bnStop;
    private MainViewPageAdapter viewPageAdapter;
    private ShoppingCarFragment shoppingCarFragment;
    private Fragment[] fragments;

    private WrapRecyclerAdapter wrapRecyclerAdapter;

    private TestAdapter adapter;

    private ArrayList<String> arrayList;

    private LinearLayoutManager linearLayoutManager;



    @Override
    public void init() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //immersion();
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        initView();
        shoppingCarFragment = new ShoppingCarFragment();
        fragments = new Fragment[]{shoppingCarFragment};
        viewPageAdapter = new MainViewPageAdapter(getSupportFragmentManager(), fragments);
        mainViewPage.setAdapter(viewPageAdapter);
    }

    private void initView(){
    }


    @OnClick(R.id.bn_stop)
    public void onViewClicked() {
    }



    public interface ActivityToFragment {
        void changeTabOne(int type);

        void changeSeaech(int type);
    }
}
